
function getAppName() {
    cordova.getAppVersion.getAppName(function (appName) {
        document.getElementById("appName").innerHTML = appName;
    });
}

function getPackageId() {
    cordova.getAppVersion.getPackageName(function (appPackageId) {
        document.getElementById("appPackageId").innerHTML = appPackageId;
    });
}

function getAppVersionNumber() {
    cordova.getAppVersion.getVersionNumber(function (appVersion) {
        document.getElementById("appVersion").innerHTML = appVersion;
    });
}

function getAppVersionCode() {
    cordova.getAppVersion.getVersionCode(function (versionCode) {
        document.getElementById("versionCode").innerHTML = versionCode;
    });
}

function getAppVersion() {
    document.getElementById("versionInfo").innerHTML = "version:"+AppVersion.version+",code:"+AppVersion.build;
}